/**
 * Created by banzhenyu on 2016/10/28.
 * 处理用户登陆注销的路由
 */
var express = require('express');
var router = express.Router();
var connect_multiparty = require('connect-multiparty');
var multipart = connect_multiparty();

var controllers = require('../controllers')

/**
 * 登录
 */
router.route('/user/login').post(multipart,controllers.user.login);

/**
 * 注销登录
 */
router.route('/user/logout').post(controllers.user.logout);

module.exports = router;